//2009/08/17 20:57:35
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class DivToZero
{
public:
    string lastTwo(int num, int factor)
    {
		int numm = num / 100;
		cout << "numm: " << numm << endl;
        stringstream s;
        s << numm;
        string str = s.str();
		cout << "str: " << str << endl;
        for (char a='0'; a<='9'; a++)
        {
            for (char b='0'; b<='9'; b++)
            {
                string temp = str + a + "" + b;
				cout << "temp: " << temp << endl;
                stringstream ss(temp);
                int m;
                ss >> m;
                if (m % factor == 0)
                {
                    string s1;
					s1 += a;
					cout << "s1: " << s1 << endl;
                    s1 += b;
					cout << "s1: " << s1 << endl;
                    return s1;
                }
            }
        }
    }
};
